package com.chandra.pos.customer.dao.entity;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Admin on 8/15/14.
 */
public interface CustomerOrderRepository extends JpaRepository<CustomerOrderEntity, Long> {


    public Page<CustomerOrderEntity> findByCustomerId(Long customerId, Pageable pageable);

    public Page<CustomerOrderEntity> findByOrderId(Long orderId, Pageable pageable);

}
